var myScroll;
var mySwiper;
var aA = false;
var num1 = 1;
// 灯缩放
var scaleNum1 = 1;
// 水壶播放
var shuihu = false;
// p1
var p1Img1H;var p1Img2H;var p1Img3H;var p1TextH;
// p2
var p2TextH;var p2ColaH;
// p3
var p3TextH;var p3ShuihuH;var p3FanH;
// p4
var p4DengH;var p4TextH;
// p5
var p5CarH;var p5TextH;
// p6
var p6TextH;var p6CarH;var p6ChairH;
// p7
var p7EggH;var p7TextH;var p7PeopleH;
// p8
var p8TextH;
// p9
var p9TextH;
// p10
var p10TimeH;var p10TextH;var p10HuasaH;
// 屏幕高度
var wrapperH = window.innerHeight;
var h1 = parseInt(wrapperH * 0.6);
function loaded() {
    mySwiper = new Swiper('.container',{
        direction : 'vertical',
        freeMode : true,
        freeModeMomentum : false,
        autoHeight: true,
        slidesPerView: 'auto',
        resistanceRatio : 0,//拖动边界
        observer: true,//修改swiper自己或子元素时，自动初始化swiper
        observeParents: true,
        on:{
            touchMove: function (event) {
                scrollY();
                // console.log(this.activeIndex);
            },
            slideChangeTransitionStart: function(){
                console.log(this.activeIndex);
            },
        }
    })
}